/*
 * Topic.java
 * Copyright (c) 2014, 2019, Kiri. 
 * All rights reserved.
 */
package com.onesalt.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * 专题
 *
 * @author kiri
 * @date 2015年4月19日
 * @version 1.0
 */
@Entity(name = "t_topic")
public class Topic implements Serializable {

	private static final long serialVersionUID = -4664983427987934488L;

	public static final int TYPE_KITCHEN = 1;
	public static final int TYPE_DINNER = 2;
	
	@Id
	@GeneratedValue
	private Long topicId;

	private Integer type;
	
	private String photo;

	private String title;

	private String content;

	private Date createTime = new Date();

	public Long getTopicId() {
		return topicId;
	}

	public void setTopicId(Long topicId) {
		this.topicId = topicId;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

}
